home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / utils / newbell.arc / NEWBELL.DOC < prev    next >
Text File  |  1990-02-07  |  4KB  |  92 lines

  1.                                 NewBell
  2.                 Freeware System Bell Replacement Program
  3.                    Copyright © 1989, Gribnif Software
  4.                    
  5.  
  6. This program may be freely distributed on the condition that this text file
  7. is included and has not been modified. Any use of this program for commercial
  8. purposes is not permitted.
  9.  
  10.  
  11. When was the last time somebody showed you the cute digitized sound they
  12. had for their Mac and you wished you could do the same on your ST?
  13. Why in the world hasn't someone written something to do this yet? That's
  14. what I wondered until I tried to write something to replace Atari's
  15. "ping" with a digitized sound. Fortunately, after putting it on the
  16. backburner for about a year, I was finally able to get everything to work.
  17. Considering how much "fun" it was, I can almost understand why nobody
  18. else has done it before.
  19.  
  20. So, here it is. This program can be run both from the built-in desktop and
  21. from the AUTO folder. Allthough there are many digitized sound file formats,
  22. the simplest of them all seems to be that used by ST Replay and DigiSound,
  23. so that is the format that is supported. The program has two modes of
  24. operation:
  25.  
  26.   If you call NEWBELL as a .TTP program, you can pass it two parameters.
  27.   The first is an optional number from 0-5 signifying the speed at which to
  28.   play the sound file, which is the second parameter. For instance, you might
  29.   enter "3 e:\temp\sounds\hal.snd" on the TTP line to just play this file
  30.   once and quit.
  31.   
  32.   But that's not the exciting one. The better way is if you run NEWBELL
  33.   without parameters. In this case, it looks for a file called NEWBELL.DAT.
  34.   If you are running from the desktop, the DAT file should be in the same
  35.   directory as the program; if from the AUTO folder, the DAT file should be
  36.   in the root of the drive you are booting from. [Note: NEWBELL.TTP shoule
  37.   be renamed to NEWBELL.PRG if you run it from the auto folder.]
  38.   
  39.   In this second mode, the DAT file consists of up to ten lines of text that
  40.   have both the speed of the sound file (optional) and its full path,
  41.   separated by a space. Here is an example:
  42.   
  43. 3 e:\temp\sounds\amadeus.snd
  44. 4 e:\temp\sounds\bangbang.spl
  45. e:\temp\sounds\laughboy.snd
  46.  
  47.   If the filename does not have a number in front of it, then the file itself
  48.   is assumed to contain the speed as the first byte. Some sound files I
  49.   found followed this convention, but about half did not.
  50.   
  51.   If there is more than one file in this list, then a file is chosen
  52.   randomly from the list each time NEWBELL is run.
  53.   
  54. In order to find the best playing speed when it is unknown, the best thing
  55. to do is to use a program like Playem (which is available on most of the
  56. BBS systems) in order to try the various speeds beforehand. There are a
  57. good number of programs to play digitized files out there. Most sound
  58. files seem to be digitized at either speed 3 or 4.
  59.  
  60. When looking for sound files to use keep one thing in mind: the longer it
  61. is, the more time you will have to wait whenever you get a system bell.
  62.  
  63. Please beware that if you are in a telecommunications program, the program's
  64. buffer may begin to overflow if you get a bell and NEWBELL is busy playing
  65. it, so you may want to use the control panel to turn off the system bell, as
  66. this also deactivates NEWBELL.
  67.  
  68. This program uses Timer A in is operation and will most likely interfere
  69. with any other program that uses this timer, but only if it actually
  70. produces a digitized "bell". The most common use for this timer is in MIDI
  71. programs, though others may use it also.
  72.  
  73. There is still a problem that randomly appears, and I haven't the slightest
  74. reason why. Sometimes, when you produce a bell by using the mouse, it will
  75. not continue to move as it should. Then, when the sound has finished, one
  76. or more keyclick sounds occur and the keyboard handler thinks you are
  77. holding down the Escape key. The best way to clear this up is to stay
  78. in the GEM alert you were in (or go to the menu and select one) and then
  79. hit any key on the keyboard. I'm sorry about this; it must have something
  80. to do with timing in the keyboard chip.
  81.  
  82.  
  83. Enjoy!
  84.  
  85.  
  86. Dan Wilga
  87. Gribnif Software
  88. P.O. Box 350
  89. Hadley, MA  01035
  90.  
  91. Gribnif@UMASS.Bitnet
  92.